<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" src="/static/js/swfobject.js"></script>
<link href="/static/css/style.css" rel="stylesheet" type="text/css" media="screen">
<title></title>

<style type="text/css" media="all">
<!--

#container {
	{% if page_template.image %}
	
	position: relative;
	margin: 0 auto 0 auto;
	width: {{page_template.image.width}}px;
	height: {{page_template.image.height}}px;
	background: url({{page_template.image.url}}) top left no-repeat;
	
	{% else %}
	
	margin:0px;
	padding:0px;
	
	{% endif %}
	}

#ad {
	position: absolute;
	top: {{page_template.y_position}}px; 
	left: {{ page_template.x_position}}px;
	{% if banner.is_expandable %}
	
	width: {{banner.expandable_width}}px;
	height: {{banner.expandable_height}}px;
	
	{% else %}
	
	width: {{banner.width}}px;
	height: {{banner.height}}px;
	
	{% endif %}
	}

-->
</style>

</head>

<body>
	<div id="container">
		
		<div id="ad">
			<script type="text/javascript">
				// <![CDATA[
				
				{% if banner.panel %}
					var flashvars = { BASE_DIRECTORY:'',PANEL_LOAD:'{{banner.panel.url}}'};
					var params = { menu:"true",wmode:"transparent"};
				{% else %}
					var flashvars = { BASE_DIRECTORY:'',};
					var params = { menu:"true"};
				{% endif %}
				
				
				{% if banner.is_expandable %}
					swfobject.embedSWF("{{ banner.banner.url }}", "ad", "{{ banner.expandable_width }}", "{{ banner.expandable_height }}", "8.0.0", "", flashvars, params); 
				{% else %}
					swfobject.embedSWF("{{ banner.banner.url }}", "ad", "{{ banner.width }}", "{{ banner.height }}", "8.0.0", "", flashvars, params); 
				{% endif %}
			

				// ]]>
			</script>
		</div>		
	</div>
</div>
</body>
</html>
